class CreateComputersFavorites < ActiveRecord::Migration
  
  def self.up
    # 建立 結合資料表.
    create_table(:computers_favorites, :id => false)do |t|
    t.integer :computer_id  # RoR 2.0 新語法.
    t.integer :favorite_id     # RoR 2.0 新語法.
    end
  end

  def self.down
    drop_table :computers_favorites
  end
  
end
